(mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 9 Aug 2007 09:36:31 +0000 (09:36 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 9 Aug 2007 09:36:31 +0000 (09:36 +0000)
for window repositioning.

src/macterm.c

index d1d9205d5dc8e4091317b95f0024cde934859c72..7d6934b806bde9ba71b0be2084acc44ea856741d 100644 (file)
@@ -10719,7 +10719,10 @@ mac_handle_window_event (next_handler, event, data)
              /* This is a workaround.  RepositionWindow fails to put
                 a window at the cascading position when its parent
                 window has a Carbon HIToolbar.  */
-             if (f->top_pos == sf->top_pos && f->left_pos == sf->left_pos)
+             if ((f->left_pos == sf->left_pos
+                  && f->top_pos == sf->top_pos)
+                 || (f->left_pos == sf->left_pos + 10 * 2
+                     && f->top_pos == sf->top_pos + 32 * 2))
                MoveWindowStructure (wp,  f->left_pos + 10, f->top_pos + 32);
 #endif
            }